import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import mail from '@/components/index/mail'
import history from '@/components/history/history'
import print from '@/components/print/print'
import lock from '@/components/lock/lock'
import setting from '@/components/setting/setting'
import status from '@/components/status/status'
import err from '@/components/errpages/err'
import bind from  '@/components/index/bind.vue'
import success from '@/components/success/success.vue'
import driveSuccess from '@/components/success/driveSuccess.vue'
import printSuccess from '@/components/success/printSuccess.vue'
import pick from '@/components/pickPrinter/pick.vue'

Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/index',
      redirect: {
        name: 'index'
      }
    },
    {
      path: '/print',
      name: 'print',
      component: print
    },
    {
      path: '/history',
      name: 'history',
      component: history
    },
    {
      path: '/lock',
      name: 'lock',
      component: lock
    },
    {
      path: '/setting',
      name: 'setting',
      component: setting
    },
    {
      path: '/status',
      name: 'status',
      component: status
    },
    {
      path: '/mail',
      name: 'mail',
      component: mail
    },
    {
      path: '/err',
      name: 'err',
      component: err
    },

    {
      path: '/bind',
      name: 'bind',
      component: bind
    },
    {
      path: '/success',
      name: 'success',
      component: success
    },
    {
      path: '/driveSuccess',
      name: 'driveSuccess',
      component: driveSuccess
    },
    {
      path: '/printSuccess',
      name: 'printSuccess',
      component: printSuccess
    },
    {
      path: '/pick',
      name: 'pick',
      component: pick
    }
  ]
})
